package com.yyi.springcloud.service;

import com.yyi.springcloud.common.SearchResult;
import com.yyi.springcloud.entities.DataTablesPage;
import com.yyi.springcloud.entities.SearchInfoModel;
import com.yyi.springcloud.entities.TestProdInfoValueVo;

import java.util.List;

public interface Local_SearchInfoService {
	/**
	 * 1.根据关键字查询信息
	 * 
	 * @param keyword
	 * @return
	 */
	public List<SearchInfoModel> getSearchInfo(String keyword);

	// solr搜素引擎专用
	public SearchResult searchService(String queryString, int page, int rows) throws Exception;

	// 3.导入数据到索引库----solr专用
	public String importAllSearchData();

	/**
	 * 历史数据solr搜素
	 * 
	 * @Description:
	 * @author 高杨
	 * @date 2018年8月14日 下午3:58:41
	 * @return List<TestProdInfoValueVo>
	 */
	public DataTablesPage<TestProdInfoValueVo> historyDataSearch(int draw, String queryString, int start, int rows,
                                                                 String startDate, String endDate) throws Exception;
}
